.class Lcom/waiqin365/lightapp/im/activity/bj;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/im/adapter/bb;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 5

    const v4, 0x7f08024b

    const/4 v3, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->c(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Lcom/waiqin365/lightapp/im/adapter/az;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/az;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->c(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Lcom/waiqin365/lightapp/im/adapter/az;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/adapter/az;->getCount()I

    move-result v0

    if-ne p1, v0, :cond_1

    if-lez p1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->b(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Landroid/widget/CheckBox;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/CheckBox;->setChecked(Z)V

    :goto_0
    if-lez p1, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->g(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->g(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    :cond_0
    :goto_1
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->b(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Landroid/widget/CheckBox;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->g(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Landroid/widget/Button;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/bj;->a:Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;->g(Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setEnabled(Z)V

    goto :goto_1
.end method
